package com.aviccxzx.smarthome.utils;

import java.util.List;

/**
 * Created by joey on 2017/7/14.
 */

public class ListUtils {
    public static String listToString(List<String> stringList){
        if (stringList==null) {
            return null;
        }
        StringBuilder result=new StringBuilder();
        boolean flag=false;
        for (String string : stringList) {
            if (flag) {
                result.append(",");
            }else {
                flag=true;
            }
            result.append(string);
        }
        return result.toString();
    }
}
